﻿var http = require('http'),
     sys = require('sys'),
     url = require('url'),
     path = require('path'),
     fs = require('fs'),
     events = require("events");

http.createServer(function (request, response) {

    var uri = url.parse(request.url).pathname;
    var filename = path.join(process.cwd(), uri);
        response.writeHead(500, { "Content-Type": "text/plain" });
        response.write(uri);
    response.end();

}).listen(8080);

sys.puts('the dark server of gruesome and painful death is running of the dreaded port of doom 4000 :D Just kidding')